//category templ moudule
define(['template'],function (t) {
	var source = '<div class="main mts mlss mrss pb-6" id="main">'+
		'<a class="topcwrap block wf-100 bgw so mts" href="javascript:;">'+
			'<div class="ps">'+
			'<img src="{{imgurl}}" width="100%"/>'+
			'<p class="topictitle css3_flexbox">'+
				'<span class="block wf-75">{{name}}</span>'+
				'<span class="block wf-25">{{date}}</span>'+
			'</p>'+
			'<p class="topicinfo">{{intro}}</p>'+
			'</div>'+
		'</a>'+
		'<div id="listwrap" class="listwrap">'+
			 '{{each list as value i}} '+
			     '<div class="listitem wf-100 h-7 clearfix bgw so mts rounds"> '+
			         '<div class="l fl wf-25 fullh"> '+
				         '<a class="j_start block tdn oh hf-80 ps" href1="{{value.url}}" href="javascript:;" target="_blank"><img src="{{value.imgurl}}" class="round-10" alt="{{value.name}}" height="100%"/></a> '+
				 '</div> '+
				'<div class="l fl wf-40 fullh">'+
					'<a class="j_start block tal tdn fs14px mtl" href1="{{value.url}}" href="javascript:;" target="_blank">{{value.name}}</a>'+
					'<p class="oh">{{value.intro}}</p>'+
				'</div>'+
				'<div class="l fl wf-35 fullh lh-7 tar">'+
					'<a class="j_start hm ib pl pr rounds gr btn redbtn tac mr" href1="{{value.url}}" href="javascript:;" target="_blank">{{value.start}}</a>'+
				'</div>'+
			    '</div>'+
			'{{/each}}'+
		'</div>'+
	'</div>';

	var render = t.compile(source);
	return function(data){
		return render(data);
	};
});
